package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.TransportUserDTO;
import com.hunttown.mes.rpc.domain.query.TransportUserDTOQuery;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-05-18 20:14:42
 */
public interface TransportUserRpcService {

    TransportUserDTO insert(TransportUserDTO transportUserDTO);

    Boolean updateInfoById(TransportUserDTO transportUserDTO);

    Boolean updateInfoByQuery(TransportUserDTOQuery transportUserDTOQuery);

    TransportUserDTO selectById(Integer id);

    //仅供worker使用
    TransportUserDTO selectById(Integer id, Integer entId);

    TransportUserDTO selectObjByQuery(TransportUserDTOQuery transportUserDTOQuery);

    Page<TransportUserDTO> getListForPage(TransportUserDTOQuery transportUserDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> selectSimilarUser(String similar, Integer userType);

    List<Map<String, String>> getMapDataByQuery(TransportUserDTOQuery transportUserDTOQuery, String element);
}